Skip to content

chore: ignore the .claude directory - #132

Merged
dg-coreylweathers merged 2 commits into
mainfrom
chore/ignore-local-agent-dirs
Oct 9, 2026
Merged

dg-coreylweathers merged 2 commits into
mainfrom
chore/ignore-local-agent-dirs

Conversation

@dg-coreylweathers

@dg-coreylweathers dg-coreylweathers commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds .claude/ to .gitignore, with a one-line comment naming what lives there. Claude Code keeps git worktrees and session state there, and none of it belongs in an open-source repo. Nothing under .claude/ is tracked today; this keeps it that way for every clone, not only machines with a user-level ignore.

The author's ~/.config/git/ignore already covers .claude/settings.local.json, but that protects one machine, not the repo.

Trade-off: the rule ignores the whole folder. deepgram-js-sdk ignores only .claude/settings.local.json, which leaves room to commit shared Claude Code config later. If this repo ever wants shared config under .claude/, add a negation such as !.claude/settings.json next to this rule.

.gitignore uses CRLF line endings (except its last three lines), so the three added lines (a comment, .claude/ and a blank line) are CRLF too; no existing line changed.

🤖 Generated with Claude Code

@dg-coreylweathers dg-coreylweathers changed the title chore: ignore the local .claude directory chore: ignore the .claude directory in every clone Oct 9, 2026
@dg-coreylweathers dg-coreylweathers changed the title chore: ignore the .claude directory in every clone chore: ignore the .claude directory Oct 9, 2026
Claude Code keeps worktrees and session state under .claude/. Nothing in
it belongs in the published repo, and no workflow or doc reads it.
@dg-coreylweathers
dg-coreylweathers force-pushed the chore/ignore-local-agent-dirs branch from 6cbb5c6 to 4fa1d1f Compare October 9, 2026 13:52
@dg-coreylweathers
dg-coreylweathers merged commit 1efb032 into main Oct 9, 2026
42 checks passed
@dg-coreylweathers
dg-coreylweathers deleted the chore/ignore-local-agent-dirs branch October 9, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants